package com.manshutingyu.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.manshutingyu.system.domain.SysUser;
import org.apache.ibatis.annotations.Select;

/**
 * @Author：yinyuxia
 * @Date：2025/3/29 16:32
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 根据用户名查询用户
     *
     * @param userName
     * @return
     */
    @Select("select * from sys_user where del_flag=0 and user_name= #{userName}")
    SysUser selectByUsername(String userName);
}
